﻿using CozeDomain.Entities;
using CozeDto.ProjectDtos;
using D.UtilCore.Dtos;
using D.UtilFreesqlOrm;

namespace CozeDomain.IServices
{
    /// <summary>
    /// 项目接口
    /// </summary>
    public interface IProjectService : IBaseService<ProjectEntity>
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="reqAddProject"></param>
        /// <returns></returns>
        Task<ApiResult<int>> AddProjectAsync(ReqAddProject reqAddProject);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<ApiResult<int>> DeleteProjectAsync(List<string> ids);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="reqUpdateProject"></param>
        /// <returns></returns> 
        Task<ApiResult<int>> UpdateProjectAsync(ReqUpdateProject reqUpdateProject);

        /// <summary>
        /// 单个查询
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns> 
        Task<ApiResult<RepProjectInfo>> GetProjectAsync(string id);

        /// <summary>
        /// 查询列表
        /// </summary>
        /// <returns></returns>
        Task<ApiResult<List<RepProjectInfo>>> QueryProjectListAsync();
         
        /// <summary>
        /// 分页查询
        /// </summary>
        /// <param name="reqQueryProjectPage"></param>
        /// <returns></returns>
        Task<ApiResult<PageModel<RepProjectInfo>>> QueryProjectPagesAsync(ReqQueryProjectPage reqQueryProjectPage);
    }
}
